/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.xtd.view;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;

/**
 *
 * @author Lu Yuanbin
 */
@ManagedBean(name = "userRoleController")
@SessionScoped
public class UserRoleController implements Serializable {

    private String username;
    private String password;
    private String selectedTab;



    public String login() {
        return "/view/main";
    }

    public void help(ActionEvent actionEvent) {
        System.out.println("hello");
    }

    public String logout() {

        return "/login";
    }

    /** Creates a new instance of UserRoleController */
    public UserRoleController() {
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the selectedTab
     */
    public String getSelectedTab() {
        return selectedTab;
    }

    /**
     * @param selectedTab the selectedTab to set
     */
    public void setSelectedTab(String selectedTab) {
        this.selectedTab = selectedTab;
    }
}
